package me.zhengjie.vo.merge;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class MergeContainerList {

    private String containerCode;

    private Integer containerStatus;

    private String itemBarCodeList;

    private Double materialWeight;

    public void setMaterialWeight(Double materialWeight) {
        if (this.materialWeight == null) {
            this.materialWeight = materialWeight;
        } else {
            this.materialWeight += materialWeight;
        }

    }

    public void setItemBarCodeList(String itemBarCode) {
        if (this.itemBarCodeList == null) {
            this.itemBarCodeList = itemBarCode;
        } else {
            this.itemBarCodeList += "," + itemBarCode;
        }

    }
}
